package com.cqch.service;

import com.cqch.pojo.repVo.BaseResp;
import com.cqch.pojo.reqVo.UserReqVo;

import javax.servlet.http.HttpServletRequest;

public interface UserService {

    BaseResp registry(UserReqVo userReqVo); //注册接口

    BaseResp login(UserReqVo userReqVo); //登录接口

    BaseResp findUserByToken(HttpServletRequest request);//传递token值

    /*BaseResp validataEmail(String email);  //判断邮箱是否被占用*/

    BaseResp validataloginName(UserReqVo userReqVo);

    BaseResp getCode(String email);//邮箱发送验证码

    BaseResp phone(String phone);  //手机号

    BaseResp registryPhone(UserReqVo userReqVo);  //手机号注册

    BaseResp loginPhone(UserReqVo userReqVo);   //手机号登录

    BaseResp loginEmail(UserReqVo userReqVo);   //邮箱登录

    BaseResp validataPhone(UserReqVo userReqVo);

}
